/**
 * 
 */
package test.units;

import test.model.Person;
import biz.innovasoft.nodb.DeleteValidator;

/**
 * @author diego
 *
 */
public class PersonDeleteValidator implements DeleteValidator {

	private static final long serialVersionUID = 1L;

	public boolean canDelete(Object object) {
		Person p = (Person)object;
		if ( p.getAge() > 10 ) {
			return false;
		}
		return true;
	}

}
